#define _CRT_SECURE_NO_WARNINGS 1

//19、求3 * 4矩阵元素中的最大值

#include <stdio.h>

void main()
{
    int a[3][4] = { {18,-21,15,85},{18,9,11,26},{-18,21,11,-58} };
    int i = 0;
    int j = 0;
    int row = 0;
    int colum = 0;
    int min = a[0][0];
    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 4; j++)
        {
            if (a[i][j] < min)
            {
                min = a[i][j];
                row = i;
                colum = j;
            }
        }
    }
    printf("最小值=a[%d][%d]=%d\n", row, colum, min);
}